home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14964 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  788 b 

  1. Path: nntp-hub.barrnet.net!biosys!paralysys
  2. From: nasser@paralysys (Nasser Abbasi)
  3. Newsgroups: comp.lang.c++
  4. Subject: how to reposition cursor to start of line using cout?
  5. Message-ID: <nh68bie2ac.fsf@paralysys>
  6. Date: 2 Apr 96 21:36:43 GMT
  7. Sender: news@biosys.apldbio.COM
  8. Organization: Applied BioSystems
  9. X-Newsreader: Gnus v5.1
  10.  
  11.  
  12. hi,
  13.  
  14. looking at the io stream classes I can't seem to find a way
  15. to move the cursor backward.
  16.  
  17. What I want to do is say display a counter (using cout), and as 
  18. the program runs, the counter increaes in value, and I want to 
  19. print the new value,
  20.  
  21. But I do not want to do this next print on a new line, I want to 
  22. overwrite the old one, this means I need to move the cursor to 
  23. start of line to be able to do this.
  24.  
  25. any one knows a  way to do?
  26.  
  27. thanks!
  28. Nasser
  29.